//
//  LKDHud.m
//  LaiKeDaoClient
//
//  Created by zzs on 15/11/20.
//  Copyright © 2015年 LKD. All rights reserved.
//

#import "LKDHud.h"
static LKDHud *shareHud=nil;

@implementation LKDHud

+(LKDHud*)shareHud
{
    static dispatch_once_t predicate;
    dispatch_once(&predicate, ^{
        shareHud = [[self alloc] init];
    });
    return shareHud;
}
-(void)showLoadingView{
    UIViewController *vc=[self getCurrentVC];
    if (vc) {
      _hud=[MBProgressHUD showHUDAddedTo:[self getCurrentVC].view animated:YES];   
    }
   
}
-(void)hideLoadingView{
    [_hud hide:YES];
}
-(void)showtip:(NSString*)mes{
    _hud=[MBProgressHUD showHUDAddedTo:[self getCurrentVC].view animated:YES];
    _hud.mode = MBProgressHUDModeText;
    _hud.labelText = mes;
    _hud.removeFromSuperViewOnHide = YES;
    [_hud hide:YES afterDelay:2];
}
@end
